#include <hidef.h>      /* common defines and macros */
#include "derivative.h"      /* derivative-specific definitions */
#include <time.h>

int square (int* v, int tam){
   int i = 0, soma = 0;
   for (i; i<tam; i++){
        soma += (v[i])^2;
   }
   return soma;
}
void main(void) {
  /* put your own code here */
    int vet[64];
    int s = 0, i = 0;


	EnableInterrupts;


  for(;;) {
    _FEED_COP(); /* feeds the dog */
    for(i=0; i<64; i++){
        vet[i] = 0xff;
    }
    s = square(vet,64);    
  } /* loop forever */
  /* please make sure that you never leave main */
}
